package com.xxgc.demo.controller;

import com.xxgc.demo.controller.result.Result;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/*
 *
 *   @Author: Sjy
 *   @Date: 2023/10/18-10-18-9:35
 *  Nginx测试使用
 */
@Slf4j
@Tag(name = "nginx测试")
@RestController
public class NginxTestController {

    @GetMapping("/getMessage")
    public Result getMessage(){
        return Result.ok().msg("本次请求由：192.168.1.199响应,系统成功升级到V2.0版本");
    }

    @GetMapping("/toGp/getUserInfo")
    public Result getUserInfo(){
        return Result.ok().msg("指定接口转发：192.168.1.199");
    }
}
